#!/system/bin/sh

(
    until [ "$(getprop init.svc.bootanim)" = "stopped" ]; do
        sleep 10
    done

    if [ -f "/data/adb/box/scripts/start.sh" ]; then
        chmod -R 755 /data/adb/box/scripts/
        /data/adb/box/scripts/start.sh >/dev/null 2>&1
    else
        echo "File /data/adb/box/scripts/start.sh not found" > "/data/adb/box/run/box_service.log"
    fi
) &